package com.yi.mall.goods.controller;

import com.alibaba.csp.sentinel.annotation.SentinelResource;
import com.yi.mall.common.utils.ResponseEnum;
import com.yi.mall.common.utils.Result;
import com.yi.mall.goods.service.impl.CategoryServiceImpl;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * <p>
 * 商品类目 前端控制器
 * </p>
 *
 * @author zzy
 * @since 2025-07-10
 */
@RestController
@RequestMapping("/goods")
public class CategoryController {
    @Autowired
    private CategoryServiceImpl categoryService;
    @GetMapping("/category/list")
    public Result listall(){
        return Result.success(ResponseEnum.SUCCESS,categoryService.listAll());
    }

}
